<admintpl file="header" />
<body class="J_scroll_fixed">
	<style>
.pop_nav {
	padding: 0px;
}

.pop_nav ul {
	border-bottom: 1px solid #266AAE;
	padding: 0 5px;
	height: 25px;
	clear: both;
}

.pop_nav ul li.current a {
	border: 1px solid #266AAE;
	border-bottom: 0 none;
	color: #333;
	font-weight: 700;
	background: #F3F3F3;
	position: relative;
	border-radius: 2px;
	margin-bottom: -1px;
}
</style>
	<div class="wrap J_check_wrap">
		<div class="pop_nav">
			<ul class="J_tabs_nav">
				<li class="current"><a href="javascript:;;">基本属性</a></li>
				<li class=""><a href="javascript:;;">SEO设置</a></li>
				<li class=""><a href="javascript:;;">模板设置</a></li>
			</ul>
		</div>
		<form class="J_ajaxForm" name="myform" id="myform" action="{:u('term/edit_post')}" method="post">
		 <input type="hidden" name="term_id" value="{$data.term_id}" />
			<div class="J_tabs_contents">
				<div>
					<div class="table_list">
						<table cellpadding="0" cellspacing="0" class="table_form"
							width="100%">
							<tbody>
								<tr>
									<td width="140">上级:</td>
									<td><select name="parent" class="normal_select">
											<option value="0">作为一级菜单</option>
											<foreach name="terms" item="vo">
												<php>$selected=$data['parent']==$vo['term_id']?"selected":""</php>
									        	<option value="{$vo.term_id}" {$selected}>{$vo.spacer}{$vo.name}</option>
											</foreach>
									</select></td>
								</tr>
								<tr>
									<td>名称:</td>
									<td><input type="text" class="input" name="name" value="{$data.name}"><span class="must_red">*</span></td>
								</tr>
								<tr>
									<td>描述:</td>
									<td><textarea name="description" rows="5" cols="57">{$data.description}</textarea></td>
								</tr>
								<tr>
									<td>类型:</td>
									<td><select name="taxonomy" class="normal_select">
											<foreach name="taxonomys" item="vo">
												<php>$selected=$data['taxonomy']==$key?"selected":""</php>
									        	<option value="{$key}" {$selected}>{$vo}</option>
											</foreach>
									</select></td>
								</tr>
							</tbody>
						</table>
					</div>


				</div>
				<div style="display: none">
					<div class="table_list">
						<table cellpadding="0" cellspacing="0" class="table_form"
							width="100%">
							<tbody>
								<tr>
									<td>SEO标题:</td>
									<td><input type="text" class="input" name="seo_title" value="{$data.seo_title}"></td>
								</tr>
								<tr>
									<td>SEO关键字:</td>
									<td><input type="text" class="input" name="seo_keywords" value="{$data.seo_keywords}"></td>
								</tr>
								<tr>
									<td>SEO描述:</td>
									<td><textarea name="seo_description" rows="5" cols="57">{$data.seo_description}</textarea></td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
				<div style="display: none">
					<div class="table_list">
						<table cellpadding="0" cellspacing="0" class="table_form" width="100%">
							<tbody>
								<php>$tpl_list=sp_admin_get_tpl_file_list();</php>
								<tr>
									<td>列表页模板:</td>
									<td>
										<php>
											$list_tpls=$tpl_list;
											unset($list_tpls['list']);
										</php>
					              		<select  class="normal_select" name="list_tpl">
					              			<option value="list">list{:C("TMPL_TEMPLATE_SUFFIX")}</option>
					              			<foreach name="list_tpls" item="vo">
					              				<php>$template_selected=$data['list_tpl']==$vo?"selected":"";</php>
					              				<option value="{$vo}" {$template_selected}>{$vo}{:C("TMPL_TEMPLATE_SUFFIX")}</option>
					              			</foreach>
					              		</select>
									</td>
								</tr>
								<tr>
									<td>单文章模板:</td>
									<td>
										<php>
											$article_tpls=$tpl_list;
											unset($article_tpls['article']);
										</php>
					              		<select  class="normal_select" name="one_tpl">
					              			<option value="article">article{:C("TMPL_TEMPLATE_SUFFIX")}</option>
					              			<foreach name="article_tpls" item="vo">
					              				<php>$template_selected=$data['one_tpl']==$vo?"selected":"";</php>
					              				<option value="{$vo}" {$template_selected}>{$vo}{:C("TMPL_TEMPLATE_SUFFIX")}</option>
					              			</foreach>
					              		</select>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
			</div>
			<div class="btn_wrap">
		      <div class="btn_wrap_pd">
		        <button class="btn btn_submit mr10 J_ajax_submit_btn" type="submit">提交</button>
		        <a class="btn" href="__URL__">返回</a>
		      </div>
		    </div>
		</form>
	</div>
	<script type="text/javascript" src="__ROOT__/statics/js/common.js{$js_debug}"></script>
</body>
</html>